<template>
  <div class="app-container">


    <el-table :data="data.list">

      <el-table-column type="index" label="序号" width="120"></el-table-column>
      <el-table-column prop="username" label="用户名"></el-table-column>
      <el-table-column prop="remark" label="备注"></el-table-column>
    </el-table>


  </div>
</template>

<script setup>


import {reactive,onMounted} from "vue";
import request from '@/utils/request.js'

const data = reactive({
  list: []
});


onMounted(() => {

  const url ='http://test.org/users';
  request.get(url).then(res=>{

    console.log(res);

    data.list=res;
  })

})

</script>

<style scoped lang="scss">

</style>